webform--server controls are Webform with client controls, that is, BS, browser apps. With regard to servers and clients, in WebForm, the server is equivalent to the background (that is, where the C # code is edited) and the client is the foreground (that is, the HTML page). Usage: ① If you want to invoke the JS or jquery function of a client control in a server
webform--server controls are Webform with client controls, that is, BS, browser apps. With regard to servers and clients, in WebForm, the server is equivalent to the background (that is, where the C # code is edited) and the client is the foreground (that is, the HTML page). Usage: ① If you want to invoke the JS or jquery function of the client control in the ser
Verify:One, non-null verification RequiredFieldValidatorErrorMessage-Prompt message after verifying the errorControlToValidate-ID of the control to validateDisplay-how it is displayed. static-does not show up also occupies space. dynamic-does not show spaceInitialValue-The initial value of the validation, the value of the validated control is the same as this value, is considered nullScene:(a) fill in the blanks(ii) The initial value has not changed:
Compile lightweight ajax components 01-comparison with various implementation methods on the webform platform, 01-webform
Preface
Asp.net WebForm and Asp.net MVC (MVC) are both web development frameworks based on Asp.net. There is a big difference between them. One of them is that MVC pays more attention to the http nature, while
. This is a big improvement, the improvement is to solve some problems (not one, a series of problems). Improved ASP technology CS code and HTML are mixed together, exposing the code details, ASP pages will not be compiled into DLLs. There are other advantages as well. From ASP to ASP, there is a large number of built-in ASP. NET server controls in the WebForm framework, which is a big change, with three types of server controls:
HTML server
Quick Reference of webForm front-end frameworks and webform frameworks
The disadvantage of Html files is that they cannot be reused. MVC can be used in _ Layout. in cshtml, The js and css files (such as jq and bootstrap) required for each page are referenced, which makes webform a little more troublesome.
WebForm needs
Web-side b/S two kinds: (ASP--Website application development Technology) WebForm: Microsoft's first website development technologyMVC: Developed later, to make it easier for developers who turn Java and PHP to accept it.Client C/S two types: WinForm: Focus on the realization of functionWPF: Focus on the aesthetics of the interface (animation, timeline), development than WinForm difficultIIS Server : 127.0.0.1--access to native published Web sitesAc
After the webform operation is complete, return to the line positioning on the home page, and webform return to the home page.
1. When a repeater table is bound to a row, a row id (unique id) is assigned, which is the primary key bound to the table.
2. Given a hidden domain
3. When you enter the editing page, the unique primary key is successively added to the hidden domain.
4. Add two js
Function level
First knowledge of webform, webform
Webform is a bsstructured program, and winform is a cs structured program;
Aspx consists of webpage and cs code;
The webpage controls of aspx are composed of server controls and client controls.
The client control is the tag in HTML.
Client control. To trigger js events, runat = "server" must be triggered with onclick.
Webform verification control and webform Control
Verification:1. Non-empty verification RequiredFieldValidatorErrorMessage-message displayed after an error is verifiedControlToValidate-ID of the control to be verifiedDisplay-Display mode. Static-space occupied when not displayed. Dynamic-no space displayedInitialValue-the initial value for verification. If the value of the verified control is the same as
inside, but the event delegate can not be written inside4. Database connectionUnlike WinForm, the difference is that the WebForm entity class, the data access class has no namespace, and can be referenced directly in the code.The other classes you create are placed in the App_Code folder, which you don't normally need to create, and you'll be prompted when you build your class.Three-layer development of 5.Webform:Interface layer: HTML+CSS+JSBusiness
WebForm. aspx Cache, webform. aspxcache
Cache (Cache) 1. If the database is queried every time you enter the page and the page content is generated, the website performance will be very poor if the access volume is very large, if the page content is generated only when the database is queried for the first access. Content will be output directly in the future. In this way, the system performance can be impr
Asp. NET divided into: ASP. WebForm and ASP.Operating mechanism:c/S (client application) code is executed on the client, just go to the database on the server to access datab/S (website application) program code executes on the server, the client only renders HTML+CSS, executes the JS code, all other functions are executed on the serverThe client browser sends the request → IIS (Internet Information Services Manager) on the server (HTML+CSS+JS) →. NET
The WebForm. aspx page accesses the methods in the WebForm. aspx. cs class through AJAX to obtain data, aspx. cs
The WebForm. aspx page uses AJAX to access methods in the WebForm. aspx. cs class to obtain data.WebForm1.aspx page (native AJAX request, method 1)
WebForm1.aspx page (native AJAX request, written in 2, w
The regular expression is used in the webform login operation, and the regular expression is webform.
Many people may think this is very troublesome about the use of regular expressions. It is really troublesome. I can't remember too many expressions. Many of them are used when I need them on a temporary basis. It's a bit of an architecture for a pupil to read novels, and I will flip the dictionary again if
WebForm control and webform Control
Simple controls
Text:
Label -- display text
Border
To set: 1. border color 2. Border Style 3. Border Width
Attribute: BackColor
BorderColor/BorderStyle/BorderWidth -- set the border
Literal
It is generally used to output JS Code.
TextBox: text input box
Attribute: TextMode -- MultLine multi-line (text field) is compiled as Textarea
Password single-line Password box
Single
Creates a high-performance, lightweight webform framework that subverts your imagination-without refreshing the process of submitting a new background and returning parameters (the fifth day), webform framework
Question 5: When I use the aspx page to execute the background method, I always need to refresh the entire page? I want to submit a page in the background without refreshing a new page, and return pa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.